//引入封装的reuest请求
const {
  request
} = require("./request.js");
//基于业务封装的接口
module.exports = {
	// 用户信息
  userInfo(data) {
    return request({
      url: "/system/ordinaryuser/getOrdinaryuser",
      method: "POST",
	  data,
	  needToken :true,
    });
  },
  
  usermjInfo(data) {
    return request({
      url: "/system/records/getPolicePersonalRecords",
      method: "POST",
  	  data,
  	  needToken :true,
    });
  },
  
  // 修改民警用户信息
  updateMjUser(data) {
    return request({
      url: "/system/records/updatePolicePersonalRecords",
      method: "POST",
  	  data,
  	  needToken :true,
    });
  },
  
  // 修改群众用户信息
  updateQzUser(data) {
    return request({
      url: "/system/ordinaryuser/updateOrdinaryuser",
      method: "POST",
  	  data,
  	  needToken :true,
    });
  },
  
  // 查询民警日常健康情况
  getRcjk(data) {
    return request({
      url: "/system/dailyhealthrecords/getPoliceDailyhealthrecords",
      method: "POST",
  	  data,
  	  needToken :true,
    });
  },
  
  // 新增民警日常健康情况
  addRcjk(data) {
    return request({
      url: "/system/dailyhealthrecords/addPoliceDailyhealthrecords",
      method: "POST",
  	  data,
  	  needToken :true,
    });
  },
  
  // 查询民警基本健康情况
  getJbjk(data) {
    return request({
      url: "/system/basichealthrecords/getPoliceBasichealthrecords",
      method: "POST",
  	  data,
  	  needToken :true,
    });
  },
  
  // 新增民警基本健康情况
  addJbjk(data) {
    return request({
      url: "/system/basichealthrecords/addPoliceBasichealthrecords",
      method: "POST",
  	  data,
  	  needToken :true,
    });
  },
  
  // 识别身份证号
  useridcardmsg(data) {
    return request({
      url: "/system/ordinaryuser/getUserIdcardMsg",
      method: "POST",
  	  data,
  	  needToken :true,
    });
  },
};